package com.lagou.sqlSession;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: lcz
 * @date: Created in 14:41 2020/9/25
 * @description:
 */
public interface SqlSession {
    <E> List<E> selectAll(String statementId, Object... params) throws Exception;

    <T> T selectOne(String statementId, Object... params) throws Exception;

    int update(String statementId, Object... params) throws Exception;

    int insert(String statementId, Object... params) throws Exception;

    int delete(String statementId, Object... params) throws Exception;

    void close() throws SQLException;

    <T> T getMapper(Class<?> mapperClass);
}
